home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-15 | 2.0 KB | 51 lines | [TEXT/KAHL] |
-
- WannaSpeech
- Written by: Guillermo A. Ortiz AppleSoft Developer Technical Support
- Date: 08/04/93
-
- Sample code that shows how to use the Macintosh Speech Manager to produce speech
- from text input, it allows the user to speak the text, to convert the text to phonemes]
- and to voice the phonemes.
-
- A phonemes keyboard is available to do phoneme input.
-
- This sample app is based on the DTS sample frame work aka AppsToGo, the base of this sample
- is the sample app AppWannaBe. I have tried to maintain the speech related code separated from
- the default AppWannaBe code in order to make it easier to look for the new stuff.
-
- The new files added to the AppWannaBe suite in order to support speech are:
- - WannaSpeech.c
- All the code that adds anything related to the speaking parts of WannaSpeech.
-
- - WannaSpeech.h
- Defines and prototypes related to WannaSpeech.c
-
- The following is a list of the original AppWannaBe files where I have made changes
- in order to support the speech capabilities of WannaSpeech.
-
- - App.h: Modified the struct TheDoc to include the docSpeech field which
- keeps the voice info for the document.
-
- - Start.c:
- main: Added a call to set up a global boolean that tells of the availability
- of speech.
-
- - Menu.c
- DoMenuCommand: Added switch case to dispatch the speech menu selections.
-
- DoAdjustSpeechMenu: Added to do the hiliting of speech menu items according to
- speech availability and the presence of speakeable text.
- - File.c
- InitDocument: Added call to InitDocSpeech to set up the voice info for
- document.
-
- - Window.c
- AdjustMenuItems: Added call to DoAdjustSpeechMenu in order to set the
- hiliting according to circumstances.
- InitContent: Added a line of code to call the routine that sets the
- name of the current voice associated with the document.
-
- AppsToGo application development framework is available in the Developers CD as well as
- in the developer support folder in AppleLink, please refer to its documentation for
- questions you may have in the overall programming and design of AppsToGo and AppWannaBe.
-